<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/jquery-3.5.1.js"></script>
</head>
<body>
<div>
    <input type="text" name="first"/>
    <ul>
        <li>1zx</li>
        <li>2</li>
        <li>3</li>
    </ul>
</div>
<script type="text/javascript">
    let x =$("li:contains(zx)");
    console.log(x)
</script>
</body>
</html>